<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
	th:replace="fragments/frame::frame(~{fragments/menu::menu(2)}, ~{::th}, ~{::tr})">
<head></head>
<body>
	<th>课程名称</th>
	<th>学生学号</th>
	<th>学生名字</th>
	<th>学生分数</th>
	<th>选课状态</th>
	<th>操作</th>

	<tr th:each="scinfo : ${list}">
		<th:block th:with="sc=${scinfo.selectedCourse}">
			<td><input type="checkbox" id="check-all" class="flat"></td>
			<td th:text="${scinfo.course}">Web高级编程</td>
			<td th:text="${sc.sno}">10</td>
			<td th:text="${scinfo.stu}">张恒锋</td>
			<td th:text="${sc.score}">17</td>
			<td th:if="${sc.state==0}">还未通过审核</td>
			<td th:if="${sc.state==1}">审核通过</td>
			<td th:if="${sc.state==2}">审核不通过</td>
			<td>
				<a class="btn-sm btn-success"
				th:href="@{review-sc(sc=${sc.no}, state='1')}">通过</a> <a
				class="btn-sm btn-danger"
				th:href="@{review-sc(sc=${sc.no}, state='2')}">拒绝</a>
			</td>
		</th:block>
	</tr>
</body>
</html>